package web.servlet.h_login;

import com.opensymphony.xwork2.ActionSupport;

public class LoginAction extends ActionSupport {
	
	private String name;
	private String password;
	public String logi() throws Exception {
		String resulte = "";
		if (name.equalsIgnoreCase("admin")&&password.equals("admin")) {
			resulte="success";
		}else {
			resulte="fail";
		}
		
		return resulte;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	

}
